Package org.jboss.as.naming

Examples of org.jboss.as.naming.ManagedReferenceFactory


    public ComponentConfiguration createConfiguration(final ClassIndex classIndex, final ClassLoader moduleClassLoader,
            final ModuleLoader moduleLoader) {
        final ComponentConfiguration configuration = super.createConfiguration(classIndex, moduleClassLoader, moduleLoader);
        // will not be used, but if instance factory is not set then components must have default constructor, which is not a
        // requirement for MBeans
        configuration.setInstanceFactory(new ManagedReferenceFactory() {
            @Override
            public ManagedReference getReference() {
                return new ManagedReference() {
                    @Override
                    public void release() {
View Full Code Here


        if (jndiNode.isDefined()) {
            // Bind the KeyGeneratorFactory into JNDI
            String jndiName = jndiNode.asString();

            final ManagedReferenceFactory valueManagedReferenceFactory = new org.jboss.as.naming.ContextListAndJndiViewManagedReferenceFactory() {

                @Override
                public String getJndiViewInstanceValue() {
                    return String.valueOf(getReference().getInstance());
                }
View Full Code Here

TOP

Related Classes of org.jboss.as.naming.ManagedReferenceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.