org.jboss.deployers.spi.deployer.helpers
Class DefaultManagedObjectCreator

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.DefaultManagedObjectCreator
All Implemented Interfaces:
ManagedObjectCreator

public class DefaultManagedObjectCreator
extends Object
implements ManagedObjectCreator

A default ManagedObjectCreator that loops through the deployment attachment names and for those which have a non-null value, calls the ManagedObjectFactory to build the attachment ManagedObject.

Version:
$Revision: 83620 $
Author:
Scott.Stark@jboss.org

Constructor Summary
DefaultManagedObjectCreator()
           
 
Method Summary
 void build(DeploymentUnit unit, Set<String> attachments, Map<String,org.jboss.managed.api.ManagedObject> managedObjects)
          Build managed object.
 org.jboss.managed.api.factory.ManagedObjectFactory getMof()
           
 void setMof(org.jboss.managed.api.factory.ManagedObjectFactory mof)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultManagedObjectCreator

public DefaultManagedObjectCreator()
Method Detail

getMof

public org.jboss.managed.api.factory.ManagedObjectFactory getMof()

setMof

public void setMof(org.jboss.managed.api.factory.ManagedObjectFactory mof)

build

public void build(DeploymentUnit unit,
                  Set<String> attachments,
                  Map<String,org.jboss.managed.api.ManagedObject> managedObjects)
           throws DeploymentException
Build managed object.

Specified by:
build in interface ManagedObjectCreator
Parameters:
unit - the deployment unit
managedObjects - map of managed objects
attachments - the attachment names
Throws:
DeploymentException - for any deployment exception


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.