Brooklyn

brooklyn.entity.proxying
[Java] Class EntitySpecs

java.lang.Object
  brooklyn.entity.proxying.EntitySpecs

public class EntitySpecs

For creating EntitySpec instances.

deprecated:
since 0.6; use EntitySpec#create(Class)#create(Class) etc
Authors:
aled


Method Summary
static BasicEntitySpec appSpec(java.lang.Class type)

Creates a new EntitySpec for this application type.

static BasicEntitySpec spec(java.lang.Class type)

@deprecated use EntitySpec#create(Class)#create(Class)

static BasicEntitySpec spec(java.lang.Class type, java.lang.Class implType)

@deprecated use EntitySpec#create(Class, Class)#create(Class, Class)

static BasicEntitySpec spec(java.util.Map config, java.lang.Class type)

@deprecated use EntitySpec#create(Map, Class)#create(Map, Class)

static WrappingEntitySpec wrapSpec(EntitySpec spec)

Wraps an entity spec so its configuration can be overridden without modifying the original entity spec.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

appSpec

@SuppressWarnings("unchecked")
public static BasicEntitySpec appSpec(java.lang.Class type)
Creates a new EntitySpec for this application type. If the type is an interface, then the returned spec will use the normal logic of looking for ImplementedBy etc. However, if the type is a class then the that implementation will be used directly. When an entity is created using the EntitySpec, one will get back a proxy of type StartableApplication, but the proxy will also implement all the other interfaces that the given type class implements. FIXME if this *class* is deprecated where does the replacement for this live? perhaps we should have spec add all interfaces unless indicated otherwise, then we can just use EntitySpec.create.


spec

public static BasicEntitySpec spec(java.lang.Class type)
deprecated:
use EntitySpec#create(Class)#create(Class)


spec

public static BasicEntitySpec spec(java.lang.Class type, java.lang.Class implType)
deprecated:
use EntitySpec#create(Class, Class)#create(Class, Class)


spec

public static BasicEntitySpec spec(java.util.Map config, java.lang.Class type)
deprecated:
use EntitySpec#create(Map, Class)#create(Map, Class)


wrapSpec

public static WrappingEntitySpec wrapSpec(EntitySpec spec)
Wraps an entity spec so its configuration can be overridden without modifying the original entity spec.
deprecated:
since 0.6.0; use EntitySpec#create(EntitySpec)#create(EntitySpec) - though note that semantics are slightly different there, the new method copies the spec so if the wrapped entity changes the new method will not pick up those changes; no plans at present to continue to support the delegation pattern (is there any need?)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.