akka.osgi.aries.blueprint
Class NamespaceHandler
java.lang.Object
akka.osgi.aries.blueprint.NamespaceHandler
public class NamespaceHandler
- extends java.lang.Object
Aries Blueprint namespace handler implementation. This namespace handler will allow users of Apache Aries' Blueprint
implementation to define their Akka ActorSystem
using a syntax like this:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:akka="http://akka.io/xmlns/blueprint/v1.0.0">
<akka:actor-system name="config">
<akka:config>
some.config {
key=value
}
</akka:config>
</akka:actor-system>
</blueprint>
Users of other IoC frameworks in an OSGi environment should use OsgiActorSystemFactory
instead.
Method Summary |
protected org.apache.aries.blueprint.mutable.MutableBeanMetadata |
createActorSystemBean(org.apache.aries.blueprint.ParserContext context,
org.w3c.dom.Element element,
org.apache.aries.blueprint.mutable.MutableBeanMetadata factory)
|
protected org.apache.aries.blueprint.mutable.MutableBeanMetadata |
createFactoryBean(org.apache.aries.blueprint.ParserContext context,
java.lang.String name)
|
scala.Nothing |
decorate(org.w3c.dom.Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
|
protected java.lang.String |
findAvailableId(org.apache.aries.blueprint.ParserContext context)
|
java.util.Set<java.lang.Class<?>> |
getManagedClasses()
|
java.net.URL |
getSchemaLocation(java.lang.String namespace)
|
protected java.util.concurrent.atomic.AtomicInteger |
idCounter()
|
org.osgi.service.blueprint.reflect.Metadata |
parse(org.w3c.dom.Element element,
org.apache.aries.blueprint.ParserContext context)
|
org.apache.aries.blueprint.mutable.MutableBeanMetadata |
parseActorSystem(org.w3c.dom.Element element,
org.apache.aries.blueprint.ParserContext context)
|
protected org.osgi.service.blueprint.reflect.BeanProperty |
parseConfig(org.w3c.dom.Element node,
org.apache.aries.blueprint.ParserContext context,
org.apache.aries.blueprint.mutable.MutableBeanMetadata factory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceHandler
public NamespaceHandler()
idCounter
protected java.util.concurrent.atomic.AtomicInteger idCounter()
getSchemaLocation
public java.net.URL getSchemaLocation(java.lang.String namespace)
getManagedClasses
public java.util.Set<java.lang.Class<?>> getManagedClasses()
parse
public org.osgi.service.blueprint.reflect.Metadata parse(org.w3c.dom.Element element,
org.apache.aries.blueprint.ParserContext context)
decorate
public scala.Nothing decorate(org.w3c.dom.Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
parseActorSystem
public org.apache.aries.blueprint.mutable.MutableBeanMetadata parseActorSystem(org.w3c.dom.Element element,
org.apache.aries.blueprint.ParserContext context)
parseConfig
protected org.osgi.service.blueprint.reflect.BeanProperty parseConfig(org.w3c.dom.Element node,
org.apache.aries.blueprint.ParserContext context,
org.apache.aries.blueprint.mutable.MutableBeanMetadata factory)
findAvailableId
protected final java.lang.String findAvailableId(org.apache.aries.blueprint.ParserContext context)
createActorSystemBean
protected org.apache.aries.blueprint.mutable.MutableBeanMetadata createActorSystemBean(org.apache.aries.blueprint.ParserContext context,
org.w3c.dom.Element element,
org.apache.aries.blueprint.mutable.MutableBeanMetadata factory)
createFactoryBean
protected org.apache.aries.blueprint.mutable.MutableBeanMetadata createFactoryBean(org.apache.aries.blueprint.ParserContext context,
java.lang.String name)